export const dishes = [
  {
    id: 1,
    name: '宫保鸡丁',
    price: 28,
    category: '热菜',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '经典川菜，鸡肉鲜嫩，花生香脆，口感丰富',
    spicy: true,
    popular: true
  },
  {
    id: 2,
    name: '麻婆豆腐',
    price: 18,
    category: '热菜',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '嫩滑豆腐配麻辣肉末，下饭神器',
    spicy: true,
    popular: false
  },
  {
    id: 3,
    name: '糖醋里脊',
    price: 32,
    category: '热菜',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '外酥内嫩，酸甜可口',
    spicy: false,
    popular: true
  },
  {
    id: 4,
    name: '水煮鱼',
    price: 45,
    category: '热菜',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '鲜嫩鱼片，麻辣鲜香',
    spicy: true,
    popular: true
  },
  {
    id: 5,
    name: '青椒土豆丝',
    price: 16,
    category: '热菜',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '清爽可口，家常味道',
    spicy: false,
    popular: false
  },
  {
    id: 6,
    name: '酸菜鱼',
    price: 38,
    category: '热菜',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '酸辣开胃，鱼肉鲜美',
    spicy: true,
    popular: false
  },
  {
    id: 7,
    name: '白切鸡',
    price: 35,
    category: '凉菜',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '皮爽肉嫩，蘸料鲜美',
    spicy: false,
    popular: true
  },
  {
    id: 8,
    name: '凉拌黄瓜',
    price: 12,
    category: '凉菜',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '清脆爽口，开胃小菜',
    spicy: false,
    popular: false
  },
  {
    id: 9,
    name: '紫菜蛋花汤',
    price: 15,
    category: '汤类',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '营养丰富，清淡鲜美',
    spicy: false,
    popular: false
  },
  {
    id: 10,
    name: '米饭',
    price: 3,
    category: '主食',
    image: 'https://images.unsplash.com/photo-1567620905732-2d1ec7ab7445?w=300&h=200&fit=crop',
    description: '香软可口，粒粒分明',
    spicy: false,
    popular: true
  }
]

export const categories = [
  { id: 'all', name: '全部', icon: 'Menu' },
  { id: 'hot', name: '热菜', icon: 'Fire' },
  { id: 'cold', name: '凉菜', icon: 'Snowflake' },
  { id: 'soup', name: '汤类', icon: 'Bowl' },
  { id: 'staple', name: '主食', icon: 'Food' }
]

export const getDishesByCategory = (category) => {
  if (category === 'all') return dishes
  if (category === 'hot') return dishes.filter(dish => dish.category === '热菜')
  if (category === 'cold') return dishes.filter(dish => dish.category === '凉菜')
  if (category === 'soup') return dishes.filter(dish => dish.category === '汤类')
  if (category === 'staple') return dishes.filter(dish => dish.category === '主食')
  return dishes
} 